package com.mjl.shops.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

public class CollatorRightBean implements MultiItemEntity {

    public static final int TITLE = 0;
    public static final int GOOD = 1;

    private TitleName titleName;
    private Goods goods;
    private int type;

    public TitleName getTitleName() {
        return titleName;
    }

    public void setTitleName(TitleName titleName) {
        this.titleName = titleName;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public void setItemType(int type) {
        this.type = type;
    }

    @Override
    public int getItemType() {
        return type;
    }

    public static class TitleName {
        private String title;
        private String id;
        //是否有更多商品 1有  0无
        private int isAll;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public int getIsAll() {
            return isAll;
        }

        public void setIsAll(int isAll) {
            this.isAll = isAll;
        }
    }

    public static class Goods {

        private String id;
        private String name;
        private String img;
        private double price;
        //添加购物车数量
        private int addNum;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public int getAddNum() {
            return addNum;
        }

        public void setAddNum(int addNum) {
            this.addNum = addNum;
        }

    }

}
